Skip to content

feat(UI):Rich text editor supports associated issues#1240

Merged
benjamin-747 merged 1 commit into
gitmono-dev:mainfrom
Ceron-CSS:link-issue
Jul 18, 2025
Merged

feat(UI):Rich text editor supports associated issues#1240
benjamin-747 merged 1 commit into
gitmono-dev:mainfrom
Ceron-CSS:link-issue

Conversation

@Ceron-CSS

Copy link
Copy Markdown
Contributor

No description provided.

@vercel

vercel Bot commented Jul 18, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mega ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2025 8:22am

This comment was marked as outdated.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds rich text editor support for associated issues by implementing a new LinkIssue extension. Users can now reference issues in the editor using a $ prefix syntax, similar to how mentions work with @.

  • Adds a new LinkIssue extension for TipTap editor that handles issue references
  • Implements UI rendering components for issue links with proper styling
  • Updates the mention system to support issue selection and insertion

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
moon/packages/editor/src/note.ts Adds LinkIssue extension to the editor configuration
moon/packages/editor/src/extensions/index.ts Exports the new LinkIssue extension
moon/packages/editor/src/extensions/LinkIssue.ts Core implementation of the LinkIssue node extension
moon/apps/web/styles/prose.css Adds CSS styling for issue links
moon/apps/web/pages/[org]/mr/[id].tsx Integrates issue extraction in comment submission
moon/apps/web/components/SimpleNoteEditor/SimpleNoteContent.tsx Adds method to extract linked issues from editor content
moon/apps/web/components/RichTextRenderer/index.tsx Adds LinkIssue to the renderer's node handlers
moon/apps/web/components/RichTextRenderer/handlers/LinkIssue.tsx React component for rendering issue links
moon/apps/web/components/MrView/MRComment.tsx Updates to use note extensions instead of markdown extensions
moon/apps/web/components/MarkdownEditor/MentionList.tsx Updates mention handling to support issue insertion

Comment thread moon/apps/web/pages/[org]/mr/[id].tsx
Comment thread moon/apps/web/pages/[org]/mr/[id].tsx
@benjamin-747
benjamin-747 added this pull request to the merge queue Jul 18, 2025
Merged via the queue into gitmono-dev:main with commit 752de2f Jul 18, 2025
4 checks passed
liuyangjuncong20202570 pushed a commit to liuyangjuncong20202570/mega that referenced this pull request Jul 20, 2025
@Ceron-CSS
Ceron-CSS deleted the link-issue branch July 24, 2025 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants